﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace helper
{
    public class paths
    {
        private static readonly String _appData =
            Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData);

        public paths()
        {

        }

        public static String getDataPath()
        {
            if (!Directory.Exists(_appData + "\\IDLEGameBot"))
            {
                Directory.CreateDirectory(_appData + "\\IDLEGameBot");
            }
            var dir = string.Format("{0}\\IDLEGameBot", Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData));
            return dir;
        }

        public static String getPlayersDataPath()
        {
            if (Directory.Exists(string.Format("{0}\\Players", getDataPath())))
            {
                Directory.CreateDirectory(getDataPath() + "\\Players");
            }
            return getDataPath() + "\\Players";
        }
    }
}
